package top.javai.www.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.context.annotation.Configuration;

import java.util.Date;

@Configuration
public class MyJob implements Job {


    //重写execute方法  完成业务需求
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("quartz is running!"+new Date());
    }
}
